import { Routes } from '@angular/router';

export const routes: Routes = [
  { path: '',   redirectTo: '/layout', pathMatch: 'full' },
  { path: 'login', loadComponent: () => import('../views/login/login.component').then((m) => m.LoginComponent)  },
  {
    path: 'layout',
    loadComponent: () =>
      import('../layout/layout.component').then((m) => m.LayoutComponent),
    children: [
      {
        path: 'dashboard',
        loadComponent: () =>
          import('../views/siteManage/dashboard/dashboard.component').then((m) => m.DashboardComponent),
      },
    ],
  },
];
